package com.atguigu.guli.service.edu;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

/*
 * @author MaShuaiHao
 * @date 2021/11/24 16:59
 */

/*
教学模块: 处理讲师,课程的CRUD的操作
 */
@MapperScan(basePackages = "com.atguigu.guli.service.edu.mapper")
//启动类注解默认扫描自己所在的饱和自包下的组件
@SpringBootApplication//(exclude = DataSourceAutoConfiguration.class) 初始化sqlSessionFacory对象 初始化数据库连接池
@ComponentScan(basePackages = "com.atguigu.guli.service")
public class ServiceEduApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceEduApplication.class,args);
    }
}
